﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using SQLServerHealthCheck.Model;
using System.Collections.ObjectModel;
using SQLServerOptimizer.PL.WPF;
namespace PlayGround.WPF
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            if (e.Args.Length != 0)
            {
                if (e.Args[0] == "p")
                {
                    new CollectPerformanceTraceData().CollectData();
                    this.Shutdown();
                }

            }
            else
            {
                new MainWindow().ShowDialog();
                this.Shutdown();

            }

        }




    }
}
